/**
 * Copyright (C) 2007-2011 JUG Events Team <info@jugevents.org>
 *
 * This file is part of JUG Events Web Application.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package it.jugpadova.bean;

import it.jugpadova.po.Event;
import it.jugpadova.po.Participant;
import it.jugpadova.util.JCaptchaValidable;
import it.jugpadova.util.JCaptchaValidator;

import com.octo.captcha.service.CaptchaService;
import javax.validation.Valid;

/**
 *
 * @author lucio
 */
// TODO V3: reimplement captcha validator. @Validator(value=JCaptchaValidator.class)
public class Registration implements JCaptchaValidable {

    private Event event;
    private Participant participant;
    private CaptchaService captchaService;
    private String captchaResponse;
    private String captchaId;

    public Registration() {
    }

    public Event getEvent() {
        return event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }

    @Valid
    public Participant getParticipant() {
        return participant;
    }

    public void setParticipant(Participant participant) {
        this.participant = participant;
    }

    public void setCaptchaId(String captchaId) {
        this.captchaId = captchaId;
    }

    public void setCaptchaResponse(String captchaResponse) {
        this.captchaResponse = captchaResponse;
    }

    public void setCaptchaService(CaptchaService captchaService) {
        this.captchaService = captchaService;
    }

    public String getCaptchaId() {
        return this.captchaId;
    }

    public String getCaptchaResponse() {
        return this.captchaResponse;
    }

    public CaptchaService getCaptchaService() {
        return this.captchaService;
    }
        
}
